package com.embracesource.monitor.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.embracesource.monitor.entity.Database;

/**
 * <p>
 * 基础平台-服务器表 服务类
 * </p>
 *
 * @author Gnerv LiGen
 * @since 2019-09-03
 */
public interface IDatabaseService extends IService<Database> {

    boolean saveDatabase(Database database);

    boolean createDatabase(Database database);

    boolean deleteDatabase(String databaseId);

    boolean updateDatabase(Database database);

    Database selectDatabase(String databaseId);

    Page<Database> listDatabase(Database database, Long current, Long size);
}
